const baseConfig = {
	duration: 2000
}

export const message = (message) => {
	uni.showToast({
		title: message,
		icon: 'none',
		duration: baseConfig.duration
	});
}

export const success = (message) => {
	uni.showToast({
		title: message,
		icon: 'success',
		duration: baseConfig.duration
	});
}

export const error = (message) => {
	uni.showToast({
		title: message,
		icon: 'error',
		duration: baseConfig.duration
	});
}

export const loading = (message) => {
	uni.showLoading({
		title: message,
	});
}

export const closeLoadiing = () => {
	uni.hideLoading();
}